package com.gowants.pems.mapper;

import com.gowants.pems.model.Loop;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LoopMapper {

    /**
     * 检索
     * @param record
     * @return
     */
    public List<Loop> select(@Param("record") Loop record);

    public Loop selectById(String id);

    public int insert(Loop loop);

    public int update(@Param("record") Loop record);

    public int delete(String id);

    public int checkName(String name);

    public int checkNameForUpdate(@Param("name") String name,@Param("id") String id);
}
